package com.demo.core.listener.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @author Tan-Bowen
 * @description TODO
 * @date 2021/7/27 16:21
 */
@Getter
@Setter
public class DeleteRedisEvent extends ApplicationEvent {
    private static final long serialVersionUID = 657421615969511489L;
    private String key;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public DeleteRedisEvent(Object source, String key) {
        super(source);
        this.key = key;
    }
}
